﻿using ErrorOr;
using Gnivc.CarDealership.Api.Domain.Entities;

namespace Gnivc.CarDealership.Api.Application.Abstractions.Repositories;

public interface IReservationRepository
{
    Task<ErrorOr<IEnumerable<Reservation>>> GetAllByVehicle(Guid vehicleId);
    Task<ErrorOr<Reservation?>> GetByIdAsync(Guid reservationId);
    Task<ErrorOr<Created>> AddAsync(Reservation reservation);
    Task<ErrorOr<Updated>> UpdateAsync(Reservation reservation);
}
